﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Stone.ServiceInterfaces.ServiceInterfaces;
using CourseArraging.DAO;

namespace Stone.ServiceImpl.ServiceImpl
{
    class YhxxService : IYhxxService
    {
        yhxxDAO yhxxdao = new yhxxDAO();
        #region IYhxxService 成员

        public DataContracts.StuArrangeEntity GetStuArrangeEntity(string id)
        {
            return yhxxdao.GetStuArrangeEntity(id);
        }

        public System.Data.DataTable GetStuArrangeInfo(string id)
        {
            return yhxxdao.GetStuArrangeInfo(id);
        }

        public List<DataContracts.StuArrangeEntity> GetStuArrangeList()
        {
            return yhxxdao.GetStuArrangeList();
        }

        public System.Data.DataTable GetStuInfo(string zt)
        {
            return yhxxdao.GetStuInfo(zt);
        }

        public System.Data.DataTable GetStuInfo8id(string id)
        {
            return yhxxdao.GetStuInfo8id(id);
        }

        public System.Data.DataTable GetStuInfo8no(string tmpno, string time)
        {
            return yhxxdao.GetStuInfo8no(tmpno, time);
        }

        public System.Data.DataTable GetStuStatistics()
        {
            return yhxxdao.GetStuStatistics();
        }

        public System.Data.DataTable GetStu8Entity(DataContracts.StuEntity stuEntity)
        {
            return yhxxdao.GetStu8Entity(stuEntity);
        }

        public System.Data.DataTable GetStuinfo8condi(string no, string spell, string sex, string dep, List<string> course_name_list, List<string> grade_name_list, List<string> time_sec_list, bool isarranged)
        {
            return yhxxdao.GetStuinfo8condi(no, spell, sex, dep, course_name_list, grade_name_list, time_sec_list, isarranged);
        }

        public DataContracts.StuEntity GetStuinfoEntity(string id)
        {
            return yhxxdao.GetStuinfoEntity(id);
        }

        public DataContracts.TecArrangeEntity GetTecArrangeEntity(string id)
        {
            return yhxxdao.GetTecArrangeEntity(id);
        }

        public List<DataContracts.TecArrangeEntity> GetTecArrangeList()
        {
            return yhxxdao.GetTecArrangeList();
        }

        public List<DataContracts.TecArrangeEntity> GetTecArrlist4Zmap(DataContracts.TecEntity tecEntity)
        {
            return yhxxdao.GetTecArrlist4Zmap(tecEntity);
        }
        public List<DataContracts.StuArrangeEntity> GetStuArrlist4Zmap(DataContracts.StuEntity stuEntity)
        {
            return yhxxdao.GetStuArrlist4Zmap(stuEntity);
        }

        public System.Data.DataTable GetTecStatistics()
        {
            return yhxxdao.GetTecStatistics();
        }

        public System.Data.DataTable GetTec8Entity(DataContracts.TecEntity tecEntity)
        {
            return yhxxdao.GetTec8Entity(tecEntity);
        }

        public System.Data.DataTable GetTecinfo(string no, string spell, string sex, string dep, List<string> course_name_list, List<string> grade_name_list, string time)
        {
            return yhxxdao.GetTecinfo(no, spell, sex, dep, course_name_list, grade_name_list, time);
        } 

        public System.Data.DataTable GetTecinfo4Contact(string no, string spell, string sex, string dep, List<string> course_name_list, List<string> grade_name_list)
        {
            return yhxxdao.GetTecinfo4Contact(no, spell, sex, dep, course_name_list, grade_name_list);
        }

        public System.Data.DataTable GetTecinfo8Time(List<string> timeseclist)
        {
            return yhxxdao.GetTecinfo8Time(timeseclist);
        }

        public DataContracts.TecEntity GetTecinfo8id(string id)
        {
            return yhxxdao.GetTecinfo8id(id);
        }

        public System.Data.DataTable GetTecinfo8no_time(string tmpno, string time)
        {
            return yhxxdao.GetTecinfo8no_time(tmpno, time);
        }

        public DataContracts.TecEntity GetYhxxEntity8Condi(string spell, string no)
        {
            return yhxxdao.GetYhxxEntity8Condi(spell, no);
        }

        public int ModiPsw8id(int id, string psw)
        {
            return yhxxdao.ModiPsw8id(id, psw);
        }

        public int addStuinfo(DataContracts.StuEntity stuEntity)
        {
            return yhxxdao.addStuinfo(stuEntity);
        }

        public void addTecall(DataContracts.TecEntity tecEntity, DataContracts.TecArrangeEntity taEntity, DataContracts.Zap2Entity zap2Entity)
        {
            yhxxdao.addTecall( tecEntity,  taEntity, zap2Entity);
        }

        public void addTecarrange(DataContracts.TecArrangeEntity taEntity)
        {
            yhxxdao.addTecarrange( taEntity);
        }

        public int addTecinfo(DataContracts.TecEntity tecEntity)
        {
            return yhxxdao.addTecinfo( tecEntity);
        }

        public void delTecall(string tecinfo_id)
        {
            yhxxdao.delTecall( tecinfo_id);
        }

        public void delTecarrange(string id)
        {
            yhxxdao.delTecarrange( id);
        }

        public void updateStuinfo(DataContracts.StuEntity stuEntity)
        {
            yhxxdao.updateStuinfo( stuEntity);
        }

        public void updateTecall(DataContracts.TecEntity tecEntity, DataContracts.TecArrangeEntity taEntity, DataContracts.Zap2Entity zap2)
        {
            yhxxdao.updateTecall(tecEntity, taEntity, zap2);
        }

        public void updateTecinfo(DataContracts.TecEntity tecEntity)
        {
            yhxxdao.updateTecinfo( tecEntity);
        }

        #endregion
    }
}
